﻿// Decompiled with JetBrains decompiler
// Type: Gtk.DragContextExtend
// Assembly: CocoStudio.Gtk.Extend, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: DBDD1FAC-46EB-4E25-BF62-EB35EC7EDA10
// Assembly location: C:\Program Files (x86)\Cocos\Cocos Studio 2\CocoStudio.Gtk.Extend.dll

using Gdk;
using System;

namespace Gtk
{
  public static class DragContextExtend
  {
    public static void SetDragData(this DragContext context, object data)
    {
      DragDataManager.SetDragData(context, data);
    }

    public static object GetDragData(this DragContext context)
    {
      return DragDataManager.GetDragData(context);
    }

    public static bool GetDataPresent(this DragContext context, Type dataType)
    {
      object dragData = context.GetDragData();
      return dragData != null && dragData.GetType().Equals(dataType);
    }

    public static Widget GetSourceWidget(this DragContext context)
    {
      return Drag.GetSourceWidget(context);
    }
  }
}
